﻿namespace System.ServiceModel.DomainServices.Client.ApplicationServices
{
    using System;

    public class LoginParameters
    {
        private readonly string _customData;
        private readonly bool _isPersistent;
        private readonly string _password;
        private readonly string _userName;

        public LoginParameters() : this(null, null, false, null)
        {
        }

        public LoginParameters(string userName, string password) : this(userName, password, false, null)
        {
        }

        public LoginParameters(string userName, string password, bool isPersistent, string customData)
        {
            this._userName = userName;
            this._password = password;
            this._isPersistent = isPersistent;
            this._customData = customData;
        }

        public string CustomData
        {
            get
            {
                return this._customData;
            }
        }

        public bool IsPersistent
        {
            get
            {
                return this._isPersistent;
            }
        }

        public string Password
        {
            get
            {
                return this._password;
            }
        }

        public string UserName
        {
            get
            {
                return this._userName;
            }
        }
    }
}

